//
//  RSPlayerData.h
//  ReplayStar
//
//  Created by Félix Cloutier on 11-11-02.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#ifdef __cplusplus
# define EXTERN_C extern "C"
#else
# define EXTERN_C
#endif

typedef struct RPReplayColor
{
	unsigned char r, g, b;
} RSReplayColor;

EXTERN_C RSReplayColor RSReplayColorCreate(unsigned char r, unsigned char g, unsigned char b);

typedef enum RSPlayerDifficulty
{
	RSPlayerDifficultyVeryEasy = 'VyEy',
	RSPlayerDifficultyEasy = 'Easy',
	RSPlayerDifficultyMedi = 'Medi',
	RSPlayerDifficultyHard = 'Hard',
	RSPlayerDifficultyVeryHard = 'VyHd',
	RSPlayerDifficultyInsane = 'Insa'
} RSPlayerDifficulty;

typedef enum RSPlayerRegion
{
	RSPlayerRegionAmerica = 1,
	RSPlayerRegionEurope = 2,
	RSPlayerRegionKorea = 3,
	RSPlayerRegionChina = 4,
	RSPlayerRegionTaiwan = 5,
	RSPlayerRegionSouthEastAsia = 6,
} RSPlayerRegion;

extern NSString* kRPPlayerProtossRace;
extern NSString* kRPPlayerTerranRace;
extern NSString* kRPPlayerZergRace;
extern NSString* kRPPlayerRandomRace;
extern NSString* kRPPlayerUnknownRace;

@interface RSPlayerData : NSObject
{
	NSString* race;
}

@property (assign) unsigned uid;
@property (copy) NSString* name;
@property (assign) NSString* race;
@property (assign) RSReplayColor color;
@property (assign) BOOL isWinner;
@property (assign) RSPlayerRegion region;

@property (assign) float handicap;
@property (assign) RSPlayerDifficulty difficulty;

@property (readonly) BOOL isComputer;

-(NSString*)description;
-(void)dealloc;

@end
